﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common.Background.Web.Controllers
{
    /// <summary>
    /// 退出系统事件
    /// </summary>
    public class ExitEvent
    {
        /// <summary>
        /// 退出系统后的事件
        /// </summary>
        public static event Action ExitAfter;
        /// <summary>
        /// 触发ExitAfter事件(在本程序集中去触发）
        /// </summary>
        internal static void OnExitAfter()
        {
            if (ExitAfter != null)
            {
                ExitAfter();
            }
        }
    }
}
